<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:81:"F:\phpStudy\PHPTutorial\WWW\tp5\public/../application/index\view\index\index.html";i:1539268513;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>知之</title>
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="keywords" content="">
	<meta name="description" content="">
	<link rel="stylesheet" href="/static/index/layui/css/layui.css">
	<link rel="stylesheet" href="/static/index/css/global.css">
	<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="/static/admin/css/font.css">
	<link rel="stylesheet" href="/static/admin/css/xadmin.css">
	<script src="/static/index/layui/layui.js"></script>
	<script type="text/javascript" src="/static/admin/js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
	<script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
</head>

<body>
	<iframe  src='head' scrolling="no" width="100%" height="65px" ></iframe>

	<div class="main layui-clear">
		<div class="wrap">
			<div class="content" style="margin-right:0">
				<div class="fly-tab">

					<!--问题分类-->
					<span>
						<a href="/" class="tab-this problemAll">全部</a>
						<?php if(is_array($cate) || $cate instanceof \think\Collection || $cate instanceof \think\Paginator): $i = 0; $__LIST__ = $cate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?>
						<a href="../problemCate/<?php echo $c['zz_cate_name']; ?>"><?php echo $c['zz_cate_name']; ?></a>
						<?php endforeach; endif; else: echo "" ;endif; ?>
					</span>

					<!--搜索框-->
					<form action="/" class="fly-search">
						<input class="layui-input searchinput" autocomplete="off" placeholder="请输入您想搜索的问题" type="text" name="search">
						<button class="iconfont icon-sousuo searchs layui-btn layui-btn-xs"></button>
					</form>

					<!--发布问题按钮-->
					<?php if(empty($useres)): ?>
					<a href="../log/login" class="layui-btn jie-add">发布问题</a>
					<?php else: ?>
					<a href="Add/add" class="layui-btn jie-add">发布问题</a>
					<?php endif; ?>
				</div>

				<!--问题遍历-->
				<ul class="fly-list">
					<?php if(empty($num)): ?>
					<li class="fly-list-li">
						<h2 class="fly-tip">
							<a href="../add">暂无此类问题，您可前去提问</a>
						</h2>
					</li>
					<?php else: if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
					<li class="fly-list-li">
						<!--头像判断-->
						<?php if(empty($useres)): if(empty($v['zz_icon'])): ?>
						<a href="../log/login" class="fly-list-avatar">
							<img src="static/index/images/uer.jpg" alt="">
						</a>
						<?php else: ?>
						<a href="../log/login" class="fly-list-avatar">
							<img src="static/index/uploads/<?php echo $v['zz_icon']; ?>" alt="">
						</a>
						<?php endif; else: if(empty($v['zz_icon'])): ?>
						<a href="../tocenter/<?php echo $v['zz_uid']; ?>" class="fly-list-avatar">
							<img src="static/index/images/uer.jpg" alt="">
						</a>
						<?php else: ?>
						<a href="../tocenter/<?php echo $v['zz_uid']; ?>" class="fly-list-avatar">
							<img src="static/index/uploads/<?php echo $v['zz_icon']; ?>" alt="">
						</a>
						<?php endif; endif; ?>

						<!--问题标题-->
						<h2 class="fly-tip">
							<a href="details/<?php echo $v['zz_problem_id']; ?>"><?php echo $v['zz_problem_tit']; ?></a>
						</h2>

						<p>
							<span><a href=""><?php echo $v['zz_name']; ?></a></span>
							<span><?php echo $v['zz_problem_time']; ?></span>

							<span class="fly-list-hint">
								<!--评论个数-->
								<i class="iconfont" title="回答">&#xe60c;</i> <?php echo count($num[$v['zz_problem_id']]); ?>
							</span>
						</p>
					</li>
					<?php endforeach; endif; else: echo "" ;endif; endif; ?>
				</ul>

				<!--分页-->
				<div class="page">
					<?php echo $list->render(); ?>
				</div>

			</div>
		</div>
	</div>
</body>
	<script src="/static/index/layui/layui.js"></script>
</html>